package com.woniu.project.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.project.core.domain.Management;
import com.woniu.project.core.domain.Role;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Klaus
 * @since 2020-10-13
 */
public interface RoleMapper extends BaseMapper<Role> {

    @Select("SELECT role_id,role_name,role_description \n" +
            "from pawn_role where role_name = #{roleName}")
    Role selectRoleByName(String roleName);
}
